package org.mall.modules.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mall.modules.message.entity.AppNotice;

import java.time.LocalDateTime;

/***
 *@author yinxucun
 *@date 2019-12-05 10:47 
 */
@Mapper
public interface AppNoticeMapper extends BaseMapper<AppNotice> {
    @Insert("insert into `operation_message_log (message_id,user_id,operator_time) values (#{messageId},#{userId},#{time} )`")
    void saveLog(@Param("messageId") Integer id, @Param("userId") String userId, @Param("time") LocalDateTime dateTime);
}
